<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>label标签</title>
</head>
<body>
    <label for="id_text">用户名：</label><input type="text" id="id_text"><br>
    性别：<label for="nan">男</label> <input type="radio" name="sex" id="nan">
    <label for="nv">女</label> <input type="radio" id="nv" name="sex">
</body>
</html>